package com.slipper.sfts.member;

import javax.annotation.Resource;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.slipper.sfts.api.member.bo.MemberBrokerAccountBO;
import com.slipper.sfts.api.member.service.IMemberBrokerAccountSv;
import com.slipper.system.common.Constants;
import com.slipper.common.util.ResultUtil;

/**
 * 会员交易账号
 */
@RestController
@RequestMapping("/memberBrokerAccount")
public class MemberBrokerAccountController {
    @Resource
    private IMemberBrokerAccountSv memberBrokerAccountSv;

    @PostMapping(value = "/queryPage")
    public String queryPage(@RequestBody MemberBrokerAccountBO bo) {
        bo.setMemberId(Constants.getCurrentUser().getMember().getId());
        return ResultUtil.toJson(memberBrokerAccountSv.queryPage(bo));
    }
}
